<template>
	<view class="content">
		<view class="nav">
			<navTab-border 
			ref="navTab" 
			:tabTitle="tabTitle" 
			@changeTab="changeTab"></navTab-border>
		</view>
		<swiper
		class="swiper" 
		:current="currentTab" 
		@change="swiperTab">
			<swiper-item>
				<view class="cont-box">
					<view class="cells">
						<view class="cell">
							<view class="left">经务商名称</view>
							<view class="right">
								<input 
								class="input" 
								placeholder-class="placeholder" 
								placeholder="点击填写" 
								type="text" />
							</view>
						</view>
						<view class="cell">
							<view class="left">经销商编号</view>
							<view class="right">
								<input 
								class="input" 
								placeholder-class="placeholder" 
								placeholder="点击填写" 
								type="text" />
							</view>
						</view>
						<view class="cell">
							<view class="left">业务所在省市</view>
							<view class="right">
								<input 
								class="input" 
								disabled 
								placeholder-class="placeholder" 
								placeholder="点击选择" 
								type="text" />
								<uni-icons 
								type="arrowright" 
								size="14" 
								color="#B8B8B8"></uni-icons>
							</view>
						</view>
						<view class="cell">
							<view class="left">所属公司</view>
							<view class="right">
								<input 
								class="input" 
								disabled 
								placeholder-class="placeholder" 
								placeholder="点击选择" 
								type="text" />
								<uni-icons 
								type="arrowright" 
								size="14" 
								color="#B8B8B8"></uni-icons>
							</view>
						</view>
						<view class="cell">
							<view class="left">所属分类</view>
							<view class="right">
								<input 
								class="input" 
								disabled 
								placeholder-class="placeholder" 
								placeholder="点击选择" 
								type="text" />
								<uni-icons 
								type="arrowright" 
								size="14" 
								color="#B8B8B8"></uni-icons>
							</view>
						</view>
						<view class="cell">
							<view class="left">所属分类</view>
							<view class="right">
								<input 
								class="input" 
								disabled 
								placeholder-class="placeholder" 
								placeholder="点击选择" 
								type="text" />
								<uni-icons 
								type="arrowright" 
								size="14" 
								color="#B8B8B8"></uni-icons>
							</view>
						</view>
						<view class="cell">
							<view class="left">客户分类</view>
							<view class="right">
								<input 
								class="input" 
								disabled 
								placeholder-class="placeholder" 
								placeholder="点击选择" 
								type="text" />
								<uni-icons 
								type="arrowright" 
								size="14" 
								color="#B8B8B8"></uni-icons>
							</view>
						</view>
						<view class="cell">
							<view class="left">合作类型</view>
							<view class="right">
								<input 
								class="input" 
								disabled 
								placeholder-class="placeholder" 
								placeholder="点击选择" 
								type="text" />
								<uni-icons 
								type="arrowright" 
								size="14" 
								color="#B8B8B8"></uni-icons>
							</view>
						</view>
						<view class="cell">
							<view class="left">客户类型编码</view>
							<view class="right">
								<input 
								class="input" 
								placeholder-class="placeholder" 
								placeholder="点击填写" 
								type="text" />
							</view>
						</view>
						<view class="cell">
							<view class="left">客户类型编码得分</view>
							<view class="right">
								<input 
								class="input" 
								placeholder-class="placeholder" 
								placeholder="点击填写" 
								type="text" />
							</view>
						</view>
						<view class="cell">
							<view class="left">特护特殊要求</view>
							<view class="right">
								<input 
								class="input" 
								placeholder-class="placeholder" 
								placeholder="点击填写" 
								type="text" />
							</view>
						</view>
						<view class="cell">
							<view class="left">分管部门</view>
							<view class="right">
								<input 
								class="input" 
								disabled 
								placeholder-class="placeholder" 
								placeholder="点击选择" 
								type="text" />
								<uni-icons 
								type="arrowright" 
								size="14" 
								color="#B8B8B8"></uni-icons>
							</view>
						</view>
						<view class="cell">
							<view class="left">收货人</view>
							<view class="right">
								<input 
								class="input" 
								disabled 
								placeholder-class="placeholder" 
								placeholder="点击选择" 
								type="text" />
								<uni-icons 
								type="arrowright" 
								size="14" 
								color="#B8B8B8"></uni-icons>
							</view>
						</view>
						<view class="cell">
							<view class="left">收货人电话</view>
							<view class="right">
								<input 
								class="input" 
								disabled 
								placeholder-class="placeholder" 
								placeholder="点击选择" 
								type="text" />
								<uni-icons 
								type="arrowright" 
								size="14" 
								color="#B8B8B8"></uni-icons>
							</view>
						</view>
						<view class="cell">
							<view class="left">收货人地址</view>
							<view class="right">
								<input 
								class="input address" 
								placeholder-class="placeholder" 
								placeholder="点击填写" 
								type="text" />
							</view>
						</view>
						<view class="cell">
							<view class="left">业务联系人</view>
							<view class="right">
								<input 
								class="input" 
								placeholder-class="placeholder" 
								placeholder="点击填写" 
								type="text" />
							</view>
						</view>
						<view class="cell">
							<view class="left">业务人联系电话</view>
							<view class="right">
								<input 
								class="input" 
								placeholder-class="placeholder" 
								placeholder="点击填写" 
								type="text" />
							</view>
						</view>
						<view class="cell">
							<view class="left">报流向库存负责人</view>
							<view class="right">
								<input 
								class="input" 
								placeholder-class="placeholder" 
								placeholder="点击填写" 
								type="text" />
							</view>
						</view>
						<view class="cell">
							<view class="left">办公室地址</view>
							<view class="right">
								<input 
								class="input" 
								placeholder-class="placeholder" 
								placeholder="点击填写" 
								type="text" />
							</view>
						</view>
					</view>
				</view>
			</swiper-item>
			<swiper-item>
			</swiper-item>
			<swiper-item>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				currentTab:0,
				tabTitle: ['基本信息' , '业务信息' ,'客户范围']
			};
		},
		methods:{
			changeTab(index) {
				this.currentTab = index;
			},
			// swiper 滑动
			swiperTab: function(e) {
				var index = e.detail.current; //获取索引
				this.$refs.navTab.longClick(index);
			},
		}
	}
</script>

<style scoped lang="scss">
	.content{
		.nav {
			width: 100%;
			background-color: #FFF;
			font-size: 28rpx;
		}
		.swiper{
			width: 100%;
			height: 1840rpx;
			.cont-box{
				margin-top: 10rpx;
				background: #FFFFFF;
				.cell{
					display: flex;
					flex-flow: nowrap;
					justify-content: space-between;
					padding: 20rpx 30rpx;
					box-sizing: border-box;
					border-bottom: 1px solid #EAEFF2;
					.left{
						font-size: 28rpx;
						color: #3A3A3A;
					}
					.placeholder{
						color: #B8B8B8;
						font-size: 26rpx;
					}
					.right{
						display: flex;
						flex-flow: nowrap;
						justify-content: flex-end;
						align-items: center;
						.input{
							text-align: right;
							height: 40rpx;
						}
					}
				}
			}
		}
	}
</style>

